package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宝箱购买信息对象 user_treasure_box_purchases
 * 
 * @author ruoyi
 * @date 2025-01-17
 */
public class UserTreasureBoxPurchases extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购买记录 ID */
    private Long purchaseId;

    /** 用户 ID */
    @Excel(name = "用户 ID")
    private Long userId;

    /** 宝箱类别 */
    @Excel(name = "宝箱类别")
    private String type;

    /** 是否观看广告 */
    @Excel(name = "是否观看广告")
    private String isWatched;

    /** 实际获得的奖励，json格式，如 {"props":{"加速":1},"灵石":10,"极品灵石":5} */
    @Excel(name = "实际获得的奖励 ")
    private String actualReward;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date purchaseTime;

    public void setPurchaseId(Long purchaseId) 
    {
        this.purchaseId = purchaseId;
    }

    public Long getPurchaseId() 
    {
        return purchaseId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setIsWatched(String isWatched) 
    {
        this.isWatched = isWatched;
    }

    public String getIsWatched() 
    {
        return isWatched;
    }
    public void setActualReward(String actualReward) 
    {
        this.actualReward = actualReward;
    }

    public String getActualReward() 
    {
        return actualReward;
    }
    public void setPurchaseTime(Date purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime() 
    {
        return purchaseTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseId", getPurchaseId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("isWatched", getIsWatched())
            .append("actualReward", getActualReward())
            .append("purchaseTime", getPurchaseTime())
            .toString();
    }
}
